package br.com.r1.observer;

import java.util.Observable;
import java.util.Observer;

public class BatchMediaObserver implements Observer {

	Observable observable;
	
	public BatchMediaObserver(Observable observable) {
		this.observable = observable;
		this.observable.addObserver(this);
	}
	
	@Override
	public void update(Observable o, Object arg) {
		System.out.println(((PainelDeControleObserver) o).getQuote().toString());
	}

	public void removeObserver(){
		this.observable.deleteObserver(this);
	}
}